Definition: qparity.hpp:22
virtual bool MParity(const bitCapInt &mask)
Measure (and collapse) parity of the masked set of qubits.
Definition: qparity.hpp:27
virtual void CUniformParityRZ(const std::vector< bitLenInt > &controls, const bitCapInt &mask, real1_f angle)=0
If the controls are set and the target qubit set parity is odd, this applies a phase factor of .
virtual void UniformParityRZ(const bitCapInt &mask, real1_f angle)
If the target qubit set parity is odd, this applies a phase factor of .
Definition: qparity.hpp:33
virtual bool ForceMParity(const bitCapInt &mask, bool result, bool doForce=true)=0
Act as if is a measurement of parity of the masked set of qubits was applied, except force the (usual...
virtual real1_f ProbParity(const bitCapInt &mask)=0
Overall probability of any odd permutation of the masked set of bits.
GLOSSARY: bitLenInt - "bit-length integer" - unsigned integer ID of qubit position in register bitCap...
Definition: complex16x2simd.hpp:25
std::shared_ptr< QParity > QParityPtr
Definition: qparity.hpp:19
float real1_f
Definition: qrack_types.hpp:91
#define bitCapInt
Definition: qrack_types.hpp:62