qandle.measurements module
- class qandle.measurements.BuiltMeasurement(*args, **kwargs)[source]
Bases:
BuiltOperator
- to_qasm() QasmRepresentation [source]
Returns the OpenQASM2 representation of the operator.
- class qandle.measurements.MeasureAllAbsolute(*args, **kwargs)[source]
Bases:
BuiltMeasurement
Measure the absolute probability of the state-vector.
- qandle.measurements.MeasureJointProbability
alias of
MeasureAllAbsolute
- class qandle.measurements.MeasureProbability[source]
Bases:
UnbuiltMeasurement
Measure the probability of each qubit being in the \(\ket{0}\) state. Use
1 - measure_probability
to get the probability of each qubit being in the \(\ket{1}\) state.
- class qandle.measurements.MeasureProbabilityBuilt(num_qubits: int)[source]
Bases:
BuiltMeasurement
- class qandle.measurements.MeasureState(*args, **kwargs)[source]
Bases:
BuiltMeasurement
Measure the state-vector. As the state-vector is already a known, this measurement is a no-op.