Skip to content

Commit

Permalink
Removed unnecessary qiskit transpilation pass that was failing (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pediejo authored Jul 16, 2024
1 parent abad8c9 commit f8e0a38
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/benchq/compilation/test_rbs_with_pauli_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import qiskit
from orquestra.quantum.circuits import CNOT, CZ, RZ, Circuit, H, I, S, T, X, Y, Z
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister
from qiskit.transpiler.passes import RemoveBarriers

from benchq.compilation.graph_states import jl
from benchq.conversions import export_circuit
Expand Down Expand Up @@ -225,8 +224,7 @@ def simulate(circuit, init, asg, pauli_tracker, show_circuit=True):

print("Starting simulation!")
simulator = Aer.get_backend("aer_simulator_matrix_product_state")
cc = qiskit.transpile(RemoveBarriers()(c), backend=simulator, optimization_level=3)
result = simulator.run(cc, shots=1000).result().get_counts()
result = simulator.run(c, shots=1000).result().get_counts()

return counts_to_pdf(asg["data_nodes"], result)

Expand Down Expand Up @@ -394,8 +392,7 @@ def dfs(node):
# All start in Z basis
Circuit([]),
# Some start in X basis, one in Z basis
# TODO: determine why this pair of parameters is failing (see issue dta2-488)
# Circuit([H(0), H(1)]),
Circuit([H(0), H(1)]),
# All start in X basis
Circuit([H(0), H(1), H(2)]),
# all start in Y basis
Expand All @@ -422,8 +419,7 @@ def dfs(node):
Circuit([H(0), CNOT(0, 1)]),
Circuit([CZ(0, 1), H(2)]),
Circuit([H(0), S(0), CNOT(0, 1), H(2)]),
# TODO: determine why this pair of parameters is failing (see issue dta2-488)
# Circuit([CNOT(0, 1), CNOT(1, 2)]),
Circuit([CNOT(0, 1), CNOT(1, 2)]),
Circuit([H(0), RZ(0.034023)(0)]),
# Test pauli tracker layering
Circuit(
Expand Down

0 comments on commit f8e0a38

Please sign in to comment.