Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Variables
example_SABRE Namespace Reference

Variables

 circuit_qiskit = QuantumCircuit.from_qasm_file(filename)
 
list coupling_map
 
string filename = 'examples/partitioning/qasm_samples/heisenberg-16-20.qasm'
 
 final_pi
 
int N = 16
 
 parameters = np.array([])
 
 parameters_initial
 
 parameters_remapped_circuit
 
 pi
 
 pi_map = list(np.array(sabre.get_inverse_pi(pi)))
 
 Qiskit_circuit = QuantumCircuit(N)
 
 Qiskit_circuit_mapped = transpile(circuit_qiskit, coupling_map=coupling_map)
 
 qubits = list(range(N))
 
 sabre = SABRE(Squander_initial_circuit, topology,stochastic_selection=True)
 
 Squander_initial_circuit
 
 Squander_remapped_circuit
 
 swap_count
 
list topology
 

Variable Documentation

◆ circuit_qiskit

example_SABRE.circuit_qiskit = QuantumCircuit.from_qasm_file(filename)

Definition at line 23 of file example_SABRE.py.

◆ coupling_map

list example_SABRE.coupling_map
Initial value:
1 = [
2  [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7],
3  [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15],
4  [0, 8],
5 ]

Definition at line 53 of file example_SABRE.py.

◆ filename

string example_SABRE.filename = 'examples/partitioning/qasm_samples/heisenberg-16-20.qasm'

Definition at line 20 of file example_SABRE.py.

◆ final_pi

example_SABRE.final_pi

Definition at line 35 of file example_SABRE.py.

◆ N

int example_SABRE.N = 16

Definition at line 21 of file example_SABRE.py.

◆ parameters

example_SABRE.parameters = np.array([])

Definition at line 13 of file example_SABRE.py.

◆ parameters_initial

example_SABRE.parameters_initial

Definition at line 26 of file example_SABRE.py.

◆ parameters_remapped_circuit

example_SABRE.parameters_remapped_circuit

Definition at line 35 of file example_SABRE.py.

◆ pi

example_SABRE.pi

Definition at line 35 of file example_SABRE.py.

◆ pi_map

example_SABRE.pi_map = list(np.array(sabre.get_inverse_pi(pi)))

Definition at line 45 of file example_SABRE.py.

◆ Qiskit_circuit

example_SABRE.Qiskit_circuit = QuantumCircuit(N)

Definition at line 44 of file example_SABRE.py.

◆ Qiskit_circuit_mapped

example_SABRE.Qiskit_circuit_mapped = transpile(circuit_qiskit, coupling_map=coupling_map)

Definition at line 59 of file example_SABRE.py.

◆ qubits

example_SABRE.qubits = list(range(N))

Definition at line 43 of file example_SABRE.py.

◆ sabre

example_SABRE.sabre = SABRE(Squander_initial_circuit, topology,stochastic_selection=True)

Definition at line 34 of file example_SABRE.py.

◆ Squander_initial_circuit

example_SABRE.Squander_initial_circuit

Definition at line 26 of file example_SABRE.py.

◆ Squander_remapped_circuit

example_SABRE.Squander_remapped_circuit

Definition at line 35 of file example_SABRE.py.

◆ swap_count

example_SABRE.swap_count

Definition at line 35 of file example_SABRE.py.

◆ topology

list example_SABRE.topology
Initial value:
1 = [(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7),
2  (8, 9), (8, 10), (8, 11), (8, 12), (8, 13), (8, 14), (8, 15),
3  (0, 8),]

Definition at line 29 of file example_SABRE.py.