Skip to content

Commit

Permalink
Merge branch 'main' into bfreeze-viualize-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanfreeze committed Sep 16, 2024
2 parents dcdc7f7 + 6166733 commit 9d65685
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/quantum_circuit/quantum_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(

elif self.gpu:
try:
check = subprocess.check_output(["nvcc", "--version"]).decode()
subprocess.check_output(["nvcc", "--version"]).decode()
self.calculator = GpuCalculator(qubits, big_endian, prep)
except FileNotFoundError:
print("ERROR: CUDA NOT INSTALLED. SWITCHING TO BASE...")
Expand Down
1 change: 0 additions & 1 deletion src/tools/amplitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

def amplitude(quantumstate, show_bit=-1, round: int = 3, radian: bool = False):
quantumstate = convert_state(quantumstate)
size = int(log2(quantumstate.size))
ToolsException().test_amplitude(show_bit, round, amplitude)
if isinstance(show_bit, int) and show_bit < 0:
amplitude = sqrt(power(quantumstate.real, 2) + power(quantumstate.imag, 2))
Expand Down
1 change: 0 additions & 1 deletion src/visualize/q_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
)
from ..tools import probability, phaseangle


def q_sphere(
circuit: any,
path: str = "qsphere.png",
Expand Down

0 comments on commit 9d65685

Please sign in to comment.