atlas_q.quantum_hybrid_system.QuantumCircuit#
- class atlas_q.quantum_hybrid_system.QuantumCircuit(num_qubits)[source]#
Bases:
objectQuantum circuit with tensor network contraction Supports limited depth circuits efficiently
Methods
add_gate(gate_name, qubit[, params])Add a gate to the circuit
cnot(control, target)Add CNOT gate
cz(control, target)Add CZ gate
depth()Calculate circuit depth
execute_on_product_state([initial_state])Execute circuit on a product state Only works if circuit maintains separability
Count gates by type
get_gate_matrix(gate_name[, params])Get the matrix representation of a gate
h(qubit)Add Hadamard gate
rx(qubit, theta)Add rotation around X axis
ry(qubit, theta)Add rotation around Y axis
rz(qubit, theta)Add rotation around Z axis
x(qubit)Add X (NOT) gate
y(qubit)Add Y gate
z(qubit)Add Z gate
Methods
__init__(num_qubits)add_gate(gate_name, qubit[, params])Add a gate to the circuit
cnot(control, target)Add CNOT gate
cz(control, target)Add CZ gate
depth()Calculate circuit depth
execute_on_product_state([initial_state])Execute circuit on a product state Only works if circuit maintains separability
Count gates by type
get_gate_matrix(gate_name[, params])Get the matrix representation of a gate
h(qubit)Add Hadamard gate
rx(qubit, theta)Add rotation around X axis
ry(qubit, theta)Add rotation around Y axis
rz(qubit, theta)Add rotation around Z axis
x(qubit)Add X (NOT) gate
y(qubit)Add Y gate
z(qubit)Add Z gate