pyqrack.qrack_stabilizer

Classes

QrackStabilizer

Interface for pure-stabilizer Qrack functionality.

Module Contents

class pyqrack.qrack_stabilizer.QrackStabilizer(qubit_count=-1, clone_sid=-1, pyzx_circuit=None, qiskit_circuit=None)

Bases: pyqrack.qrack_simulator.QrackSimulator

Interface for pure-stabilizer Qrack functionality.

Like QrackSimulator with isTensorNetwork=True, QrackStabilizer does not implement a general ALU or phase parity operations. Unlike isTensorNetwork=True, QrackStabilizer does implement compose(), decompose(), and dispose() Even if your operation is non-Clifford in full generality, QrackStabilizer will attempt to reduce it to a Clifford case. Hence, QrackStabilizer inherits the full interface of QrackSimulator (via Qrack::QInterface).

sid

Corresponding simulator id.

Type:

int

sid = None
is_tensor_network = False
is_pure_stabilizer = True
set_stochastic(s)
set_major_quadrant(q)
flip_quadrant(q)
set_quadrant(q, b)