qsystemΒΆ

Guppy standard library for Quantinuum systems device operations.

Classes

MaybeLeaked()

A class representing a measurement that may have leaked.

Measurement()

Represents the result of a lazy measurement which needs to be explicitly read before being used.

Functions

collect_measurements(measurements)

Block on each measurement until it is available and collect results into an array of bools.

lazy_measure(q)

Request a destructive lazy measurement of a qubit, returning a Measurement value.

lazy_measure_array(qubits)

Request a destructive lazy measurement of an array of qubits, returning an array of Measurement values.

measure(q)

Measure a qubit destructively.

measure_and_reset(q)

MeasureReset operation from the qsystem extension.

measure_leaked(q)

Measure the qubit and return a MaybeLeaked result.

phased_x(q, angle1, angle2)

phased_x gate command.

qfree(q)

reset(q)

Reset a qubit to the \(|0\rangle\) state.

rz(q, angle)

rz gate command.

zz_max(q1, q2)

zz_max gate command.

zz_phase(q1, q2, angle)

zz_phase gate command.

functional

Guppy standard module for functional qsystem native operations.

random

Guppy standard library for random number generation and discrete probability distributions.

utils

Guppy standard library for utilities available on Quantinuum Systems.

wasm

Guppy standard library for WebAssembly-style (wasm) contexts