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

Clean up redundancy on qutrit_mixed tests #6804

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions tests/devices/qutrit_mixed/test_qutrit_mixed_simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class TestBroadcasting:

@staticmethod
def get_expected_state(x, subspace):
"""Gets the expected final state of the circuit described in `get_ops_and_measurements`."""
"""Gets the expected final state of the circuit."""
state = []
for x_val in x:
vec = np.zeros(9, dtype=complex)
Expand All @@ -260,7 +260,7 @@ def get_expected_state(x, subspace):

@staticmethod
def get_expectation_values(x, subspace):
"""Gets the expected final expvals of the circuit described in `get_ops_and_measurements`."""
"""Gets the expected final expvals of the circuit."""
if subspace == (0, 1):
return [np.cos(x), -np.cos(x / 2) ** 2]
if subspace == (0, 2):
Expand Down Expand Up @@ -345,7 +345,7 @@ class TestStatePadding:

@staticmethod
def get_expected_dm(x, extra_wires):
"""Gets the final density matrix of the circuit described in `get_ops_and_measurements`."""
"""Gets the final density matrix of the circuit."""
vec = np.zeros(9, dtype=complex)
vec[1] = -1j * np.cos(x / 2)
vec[6] = -1j * np.sin(x / 2)
Expand Down