QSystemExtension¶
- class tket.extensions.QSystemExtension[source]¶
Bases:
TketExtensionDeprecated (since 0.13.0): use
QSystemHeliosExtensionorQSystemSolExtensioninstead.The combined
tket.qsystemextension has been split into platform-specific extensions. Usetket_exts.qsystem_heliosortket_exts.qsystem_solinstead.- __init__()¶
- property future_to_measure: ExtOp[source]¶
Convert a future(bool) to a measurement (for compatibility with the quantum extension).
- property lazy_measure_leaked: ExtOp[source]¶
Measure a qubit or detect leakage.
The returned Future is an integer between 0 and 3, where the first two values are valid measurement results, and 2 is returned if the qubit was leaked.
- property lazy_measure_reset: ExtOp[source]¶
Lazily measure a qubit and reset it to Z |0> (returns a Future).
- runtime_barrier(size)[source]¶
Runtime barrier between operations on argument qubits.
- Return type:
ExtOp
- Args:
size: Length of the qubit array.
- property runtime_barrier_def: OpDef[source]¶
Runtime barrier between operations on argument qubits.
This is the generic operation definition. For the instantiated operation, see runtimeBarrier.
- property version: Version¶
The version of the extension