pyqrack.tests.test_mirror_circuits

Module Contents

Classes

TestMirrorCircuits

Functions

mc_gate(circ, c, mat, q, p)

add a Multi-controlled mat gate, controlled on qubits c, targeting qubit q

gen_random_1q_gates(n_qubits, gate_count_1qb, depth)

gen_random_multiq_gates(n_qubits, gate_count_2qb, ...)

random_bit_string(n_qubits)

single_qubit_gates(n)

mirrored_single_qubit_gate(sim, gate, q)

multi_qubit_gates(circuit, gate, b1, b2, b3)

mirrored_multi_qubit_gates(sim, gate, b1, b2, b3)

mirror_circuit(qsim, n_qubits, initial_bitstr, depth, ...)

trials()

n_shots()

n_qubits()

depth()

gate_count_1qb()

gate_count_multiqb()

gate_count_2qb()

Attributes

X

Y

Z

SQRT1_2

pyqrack.tests.test_mirror_circuits.X = [0, 1, 1, 0]
pyqrack.tests.test_mirror_circuits.Y
pyqrack.tests.test_mirror_circuits.Z
pyqrack.tests.test_mirror_circuits.SQRT1_2
pyqrack.tests.test_mirror_circuits.mc_gate(circ: pyqrack.QrackCircuit, c: List[int], mat: List[complex], q: int, p: int)

add a Multi-controlled mat gate, controlled on qubits c, targeting qubit q

pyqrack.tests.test_mirror_circuits.gen_random_1q_gates(n_qubits, gate_count_1qb, depth)
pyqrack.tests.test_mirror_circuits.gen_random_multiq_gates(n_qubits, gate_count_2qb, gate_count_multiqb, depth)
pyqrack.tests.test_mirror_circuits.random_bit_string(n_qubits)
pyqrack.tests.test_mirror_circuits.single_qubit_gates(n)
pyqrack.tests.test_mirror_circuits.mirrored_single_qubit_gate(sim: pyqrack.QrackSimulator, gate, q)
pyqrack.tests.test_mirror_circuits.multi_qubit_gates(circuit, gate, b1, b2, b3)
pyqrack.tests.test_mirror_circuits.mirrored_multi_qubit_gates(sim: pyqrack.QrackSimulator, gate, b1, b2, b3)
pyqrack.tests.test_mirror_circuits.mirror_circuit(qsim: pyqrack.QrackSimulator, n_qubits: int, initial_bitstr: int, depth: int, random_1q_gates: List[List[int]], random_multiq_gates: List[List[Dict[str, int]]], shots: int)
pyqrack.tests.test_mirror_circuits.trials()
pyqrack.tests.test_mirror_circuits.n_shots()
pyqrack.tests.test_mirror_circuits.n_qubits()
pyqrack.tests.test_mirror_circuits.depth()
pyqrack.tests.test_mirror_circuits.gate_count_1qb()
pyqrack.tests.test_mirror_circuits.gate_count_multiqb()
pyqrack.tests.test_mirror_circuits.gate_count_2qb()
class pyqrack.tests.test_mirror_circuits.TestMirrorCircuits
test_mirror_circuits(depth: int, trials: int, gate_count_1qb: int, n_qubits: int, gate_count_multiqb: int, gate_count_2qb: int, n_shots: int)