Skip to content

Commit

Permalink
Restore API
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Mar 9, 2025
1 parent 8239930 commit b353ee9
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions include/qstabilizerhybrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,42 +564,6 @@ class QStabilizerHybrid : public QParity, public QInterface {
QINTERFACE_TO_QPARITY(engine)->CUniformParityRZ(controls, mask, angle);
}

void RY(real1_f radians, bitLenInt qubit)
{
if (engine) {
return engine->RY(radians, qubit);
}

QInterface::H(qubit);
QInterface::RZ(radians, qubit);
QInterface::H(qubit);
}

void RX(real1_f radians, bitLenInt qubit)
{
if (engine) {
return engine->RX(radians, qubit);
}

QInterface::S(qubit);
QInterface::H(qubit);
QInterface::RZ(radians, qubit);
QInterface::H(qubit);
QInterface::IS(qubit);
}

void U(bitLenInt qubit, real1_f theta, real1_f phi, real1_f lambda)
{
if (engine) {
return engine->U(qubit, theta, phi, lambda);
}

const real1_f ld2 = lambda / 2;
RZ(ld2, qubit);
RX(theta, qubit);
RZ(phi - ld2, qubit);
}

#if ENABLE_ALU
using QInterface::M;
bool M(bitLenInt q) { return QInterface::M(q); }
Expand Down

0 comments on commit b353ee9

Please sign in to comment.