Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/running_a_dds_on_ibm_q.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
Expand Down Expand Up @@ -793,7 +793,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.6.8"
}
},
"nbformat": 4,
Expand Down
5 changes: 2 additions & 3 deletions qctrlopencontrols/qiskit/quantum_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down