diff --git a/.circleci/config.yml b/.circleci/config.yml index ec120517..aa955f37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: build: working_directory: ~/open-controls docker: - - image: continuumio/anaconda3:2018.12 + - image: continuumio/anaconda3 steps: - checkout - run: python3 setup.py install diff --git a/examples/running_a_dds_on_ibm_q.ipynb b/examples/running_a_dds_on_ibm_q.ipynb index 79ede822..8afce442 100755 --- a/examples/running_a_dds_on_ibm_q.ipynb +++ b/examples/running_a_dds_on_ibm_q.ipynb @@ -125,7 +125,7 @@ "\n", "To construct a `QuantumCircuit` from a DDS, we need to provide the DDS (`dynamic_decoupling_sequence`). You can also provide a list (`target_qubits`) to indicate qubit indices on which the DDS will be applied. `gate_time` is the delay (in seconds) introduced by each of the `identity` gates. If measurement is required, use `add_measurement=True`. Optionally you can provide a name to the circuit (`circuit_name`).\n", "\n", - "See the [source code](https://github.com/qctrl/open-controls/blob/master/qctrlopenlibrary/qiskit/quantum_circuit.py) for more information and other parameters that may be useful.\n", + "See the [source code](https://github.com/qctrl/python-open-controls/blob/master/qctrlopencontrols/qiskit/quantum_circuit.py) for more information and other parameters that may be useful.\n", "\n", "In this example, we will use $0$th qubit and specify the `gate_time` to be $0.2$ $\\mu$s. For a quadratic DDS, we will use default $X_{\\pi/2}$ rotation as the pre-post gate (Ramsey DDS has this rotation as part of the sequence definition). Both the DDS will require a measurement operation." ] @@ -793,7 +793,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.6.8" } }, "nbformat": 4, diff --git a/qctrlopencontrols/qiskit/quantum_circuit.py b/qctrlopencontrols/qiskit/quantum_circuit.py index cd8dc164..548b12c1 100644 --- a/qctrlopencontrols/qiskit/quantum_circuit.py +++ b/qctrlopencontrols/qiskit/quantum_circuit.py @@ -83,7 +83,7 @@ def _get_circuit_gate_list(dynamic_decoupling_sequence, if offset_distance < 0: raise ArgumentsValueError("Offsets cannot be placed properly", {'sequence_operations': operations}) - elif offset_distance == 0: + if offset_distance == 0: circuit_operations.append('offset') if np.isclose(np.sum(operations[:, operation_idx]), 0.0): time_covered = offsets[operation_idx] @@ -244,8 +244,7 @@ def convert_dds_to_quantum_circuit( {'target_qubits': target_qubits, 'size(quantum_registers)': len(quantum_registers)}, extras={'max(target_qubits)': max(target_qubits)}) - else: - quantum_registers = quantum_registers + quantum_registers = quantum_registers else: quantum_registers = QuantumRegister(max(target_qubits)+1) diff --git a/setup.py b/setup.py index 8fd4800f..c299a99c 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ def main(): packages=find_packages(), setup_requires=['pytest-runner'], tests_require=['pytest'], - install_requires=['numpy', 'scipy', 'pytest', 'nbval', 'qiskit'], + install_requires=['numpy', 'scipy', 'pytest', 'nbval', 'qiskit-terra', 'qiskit-ibmq-provider'], author='Q-CTRL', author_email='support@q-ctrl.com', description='Q-CTRL Open Controls',