Skip to content

Commit

Permalink
Reduce limit for circuit drawing to 6 qubits instead of 9
Browse files Browse the repository at this point in the history
  • Loading branch information
rtvuser1 committed Sep 28, 2024
1 parent 562966e commit 87d7380
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 956 deletions.
1,288 changes: 335 additions & 953 deletions benchmarks-cudaq.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bernstein-vazirani/cudaq/bv_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def BersteinVazirani (num_qubits: int, secret_int: int, hidden_bits: List[int],
qc = [bv_kernel, [num_qubits, secret_int, hidden_bits, method]]

global QC_
if num_qubits <= 9:
if num_qubits <= 6:
QC_ = qc

return qc
Expand Down
2 changes: 1 addition & 1 deletion phase-estimation/cudaq/pe_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def PhaseEstimation (num_qubits: int, theta: float):
qc = [pe_kernel, [num_qubits, theta]]

global QC_
if num_qubits <= 9:
if num_qubits <= 6:
QC_ = qc

return qc
Expand Down
2 changes: 1 addition & 1 deletion quantum-fourier-transform/cudaq/qft_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def QuantumFourierTransform (num_qubits: int, secret_int: int, init_phase: List[
qc = [qft_kernel, [num_qubits, secret_int, init_phase, method]]

global QC_
if num_qubits <= 9:
if num_qubits <= 6:
QC_ = qc

return qc
Expand Down

0 comments on commit 87d7380

Please sign in to comment.