Skip to content

Commit

Permalink
cleaning up circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
Procatv committed Jun 18, 2024
1 parent 71f6ca5 commit 49c777c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion test/benchmarks/circuit_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def time_multi_control_circuit(self):
out = multi_control_circuit(self.ITER_CIRCUIT_WIDTH)
return out


class GateCountCircuit:
SEED = 12345
ITER_CIRCUIT_WIDTH = 16
Expand Down Expand Up @@ -153,7 +154,7 @@ def time_param_circSU2_100_build(self):
out._build()
assert out.num_parameters == 1000
return out

def time_param_circSU2_100_bind(self):
"""Measures an SDKs ability to build a
parameterized efficient SU2 circuit with circular entanglement
Expand Down
11 changes: 0 additions & 11 deletions test/benchmarks/utility_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def setup(self, basis_gate):
self.square_heisenberg_qc = QuantumCircuit.from_qasm_file(self.square_heisenberg_qasm)
self.qaoa_qasm = os.path.join(qasm_dir, "qaoa_barabasi_albert_N100_3reps.qasm")
self.qaoa_qc = QuantumCircuit.from_qasm_file(self.qaoa_qasm)
# self.qv_qasm = os.path.join(qasm_dir, "qv_N100_12345.qasm")
# self.qv_qc = QuantumCircuit.from_qasm_file(self.qv_qasm)
self.qv_qc = build_qv_model_circuit(50, 50, SEED)
self.circSU2 = EfficientSU2(100, reps=3, entanglement="circular")
self.bv_100 = bv_all_ones(100)
Expand Down Expand Up @@ -81,15 +79,6 @@ def time_parse_qaoa_n100(self, _):
strict=False,
)

# def time_parse_qv_n100(self, _):
# qasm2.load(
# self.qv_qasm,
# include_path=qasm2.LEGACY_INCLUDE_PATH,
# custom_instructions=qasm2.LEGACY_CUSTOM_INSTRUCTIONS,
# custom_classical=qasm2.LEGACY_CUSTOM_CLASSICAL,
# strict=False,
# )

def time_qft(self, _):
self.pm.run(self.qft_qc)

Expand Down

0 comments on commit 49c777c

Please sign in to comment.