Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary qiskit transpilation pass that was failing #158

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading