QSystemExtension

class tket.extensions.QSystemExtension[source]

Bases: TketExtension

Deprecated (since 0.13.0): use QSystemHeliosExtension or QSystemSolExtension instead.

The combined tket.qsystem extension has been split into platform-specific extensions. Use tket_exts.qsystem_helios or tket_exts.qsystem_sol instead.

OPS()[source]

Return the operations defined by this extension

Return type:

list[OpDef]

property Rz: ExtOp[source]

Rotate a qubit around the Z axis (not physical).

TYPES()[source]

Return the types defined by this extension

Return type:

list[TypeDef]

property ZZPhase: ExtOp[source]

Two-qubit ZZ gate with a float angle.

__call__() → Extension[source]

Returns the qsystem extension

Return type:

Extension

__init__()
property future_to_measure: ExtOp[source]

Convert a future(bool) to a measurement (for compatibility with the quantum extension).

property lazy_measure: ExtOp[source]

Lazily measure a qubit and lose it (returns a Future).

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).

property phasedX: ExtOp[source]

PhasedX gate with two float parameters.

property qFree: ExtOp[source]

Free a qubit (lose track of it).

property reset: ExtOp[source]

Reset a qubit to the Z |0> eigenstate.

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 try_QAlloc: ExtOp[source]

Try allocate a qubit in Z |0> (returns Option-like result).

property version: Version

The version of the extension