diff --git a/docs/guide.rst b/docs/guide.rst index 8115739..9e5f851 100644 --- a/docs/guide.rst +++ b/docs/guide.rst @@ -96,7 +96,7 @@ Basic quantum circuit execution follows the regular Qiskit workflow. A quantum c circuit = qiskit.QuantumCircuit(2) circuit.h(0) - circuit.cnot(0, 1) + circuit.cx(0, 1) circuit.measure_all() .. warning:: AQT backends currently require a single projective measurement as last operation in a circuit. The hardware implementation always targets all the qubits in the quantum register, even if the circuit defines a partial measurement. @@ -200,7 +200,7 @@ In this Bell state, the expectation value of the the :math:`\sigma_z\otimes\sigm bell_circuit = qiskit.QuantumCircuit(2) bell_circuit.h(0) - bell_circuit.cnot(0, 1) + bell_circuit.cx(0, 1) observable = SparsePauliOp.from_list([("ZZ", 1)]) result = estimator.run(bell_circuit, observable).result() diff --git a/docs/index.rst b/docs/index.rst index d42f7be..10be1b8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,7 +23,7 @@ Define a circuit that generates 2-qubit Bell state and sample it on a simulator # Define a circuit. circuit = QuantumCircuit(2) circuit.h(0) - circuit.cnot(0, 1) + circuit.cx(0, 1) circuit.measure_all() # Select an execution backend. diff --git a/examples/quickstart-sampler.py b/examples/quickstart-sampler.py index fdda405..9cb1855 100644 --- a/examples/quickstart-sampler.py +++ b/examples/quickstart-sampler.py @@ -23,7 +23,7 @@ # Define a circuit circuit = QuantumCircuit(2) circuit.h(0) -circuit.cnot(0, 1) +circuit.cx(0, 1) circuit.measure_all() # Select an execution backend diff --git a/test/test_resource.py b/test/test_resource.py index 52c317c..facb19a 100644 --- a/test/test_resource.py +++ b/test/test_resource.py @@ -361,7 +361,7 @@ def test_offline_simulator_detects_invalid_circuits( """ qc = QuantumCircuit(2) qc.h(0) - qc.cnot(0, 1) + qc.cx(0, 1) qc.measure_all() with pytest.raises(ValueError, match="^Operation 'h' not in basis gate set"):