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

For discussion: use black for code formatting #5883

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
wrapping
levbishop committed Feb 19, 2021
commit b8510fb360777f5b6085c7b4fecf43c7e4767dec
3 changes: 2 additions & 1 deletion qiskit/circuit/library/arithmetic/piecewise_chebyshev.py
Original file line number Diff line number Diff line change
@@ -309,7 +309,8 @@ def _reset_registers(self, num_state_qubits: Optional[int]) -> None:
self._ancillas = []

def _build(self):
"""Build the circuit. The operation is considered successful when q_objective is :math:`|1>`"""
"""Build the circuit. The operation is considered successful when q_objective is
:math:`|1>`"""
# do not build the circuit if _data is already populated
if self._data is not None:
return
3 changes: 2 additions & 1 deletion test/python/opflow/test_state_construction.py
Original file line number Diff line number Diff line change
@@ -218,7 +218,8 @@ def test_circuit_permute(self):
self.assertEqual(c_op, c_op_id)

def test_primitive_param_binding(self):
"""Test that assign_parameters binds parameters of both the underlying primitive and coeffs."""
"""Test that assign_parameters binds parameters of both the underlying primitive and
coeffs."""
theta = ParameterVector("theta", 2)
# only OperatorStateFn can have a primitive with a parameterized coefficient
op = StateFn(theta[0] * X) * theta[1]