Created
October 7, 2020 20:56
-
-
Save quantumjim/8d78c3c82e9a5e90ada3cee0eafc180a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import QuantumCircuit | |
fromm qiskit.quantum_info import Densitymatrix | |
from qiskit.providers.aer.utils import insert_noise | |
# make a circuit (her with 2 qubits) | |
circ = QuantumCircuit(2) | |
# add a noise model to make it noisy | |
noise_circ = insert_noise(circuit, noise_model, transpile=True) | |
# simulate | |
rho = DensityMatrix.from_instruction(noise_circ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment