logicalΒΆ

Classes

Functions

all_but_one_rx(block, i, phase)

Rx rotation of phase radians on qubits except that with index i.

all_but_one_rz(block, i, phase)

Rz rotation of phase radians on qubits except that with index i.

all_but_one_x(block, i)

X gate on all qubits except that with index i.

all_but_one_z(block, i)

Z gate on all qubits except that with index i.

all_h(block)

H gate on all qubits.

all_rx(block, phase)

Rx gate on all qubits.

all_ry(block, phase)

Ry gate on all qubits.

all_rz(block, phase)

Rz gate on all qubits.

all_x(block)

X gate on all qubits.

all_y(block)

Y gate on all qubits.

all_z(block)

Z gate on all qubits.

borrow(block, indices)

Extract dynamic logical qubits from a block.

borrow_more(block, indices)

Extract additional dynamic logical qubits from an already-borrowed block.

cx(block, i, j)

CX gate on the qubits with indices i (control) and j (target).

cx_between_blocks(block0, block1, i0, i1)

CX gate on the qubit with index i0 in block block0 and the qubit with index i1 in block block1.

cx_dynq(qubit0, qubit1)

CX gate on qubit0 (control) and qubit1 (target).

cx_transversal(block0, block1)

CX gate applied transversally over block0 and block1.

discard(block)

Free block.

fan_in(block, i)

Fan-in to the qubit with index i from all others.

fan_out(block, i)

Fan-out from the qubit with index i to all others.

free_dynq(qubit)

Free qubit.

measure_all(block)

Destructive measurement of all qubits in block.

measure_syndrome(block)

Syndrome measurement.

restore(block, qubits)

Restore all remaining dynamic logical qubits to their originating block.

restore_some(block, qubits)

Restore some dynamic logical qubits to their originating block.

rx(block, i, phase)

Rx rotation of phase radians on the qubit with index i.

rx_dynq(qubit, phase)

Rx rotation of phase radians.

ry(block, i, phase)

Ry rotation of phase radians on the qubit with index i.

ry_dynq(qubit, phase)

Ry rotation of phase radians.

rz(block, i, phase)

Rz rotation of phase radians on the qubit with index i.

rz_dynq(qubit, phase)

Rz rotation of phase radians.

swap(block, i, j)

Swap of the qubits with indices i and j.

try_alloc_dynq()

Fallible allocation of a qubit in the zero state.

try_measure_one_x(block, i)

Fallible non-destructive measurement in the X basis of the qubit with index i.

try_measure_one_z(block, i)

Fallible non-destructive measurement in the Z basis of the qubit with index i.

try_measure_x_dynq(qubit)

Fallible non-destructive measurement in the X basis.

try_measure_z_dynq(qubit)

Fallible non-destructive measurement in the Z basis.

x(block, i)

X gate on the qubit with index i.

x_dynq(qubit)

X gate.

x_with_all_but_one_z(block, i)

X gate on the qubit with index i; Z on all others.

xx(block, i, j)

X gate on the qubits with indices i and j.

xx_phase(block, i, j, phase)

XXPhase rotation of phase radians on the qubits with indices i and j.

xx_phase_between_blocks(block0, block1, i0, ...)

XXPhase rotation of phase radians on the qubit with index i0 in block block0 and the qubit with index i1 in block block1.

xx_phase_dynq(qubit0, qubit1, phase)

XXPhase rotation of phase radians on two qubits.

y(block, i)

Y gate on the qubit with index i.

y_dynq(qubit)

Y gate.

yy(block, i, j)

Y gate on the qubits with indices i and j.

yy_phase(block, i, j, phase)

YYPhase rotation of phase radians on the qubits with indices i and j.

yy_phase_between_blocks(block0, block1, i0, ...)

YYPhase rotation of phase radians on the qubit with index i0 in block block0 and the qubit with index i1 in block block1.

yy_phase_dynq(qubit0, qubit1, phase)

YYPhase rotation of phase radians on two qubits.

z(block, i)

Z gate on the qubit with index i.

z_dynq(qubit)

Z gate.

z_with_all_but_one_x(block, i)

Z gate on the qubit with index i; X on all others.

zz(block, i, j)

Z gate on the qubits with indices i and j.

zz_phase(block, i, j, phase)

ZZPhase rotation of phase radians on the qubits with indices i and j.

zz_phase_between_blocks(block0, block1, i0, ...)

ZZPhase rotation of phase radians on the qubit with index i0 in block block0 and the qubit with index i1 in block block1.

zz_phase_dynq(qubit0, qubit1, phase)

ZZPhase rotation of phase radians on two qubits.