# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Qiskit v0.34.1 (ipykernel)
#     language: python
#     name: python3
# ---

# +
import numpy as np

# Importing standard Qiskit libraries
from qiskit import QuantumCircuit, transpile, Aer, IBMQ
from qiskit.tools.jupyter import *
from qiskit.visualization import *
from ibm_quantum_widgets import *
from qiskit.providers.aer import QasmSimulator

# Loading your IBM Quantum account(s)
provider = IBMQ.load_account()
# -

ghz=QuantumCircuit(3)
ghz.h(0)
ghz.cx(0,1)
ghz.cx(0,2)
ghz.draw('mpl')

ghz.draw('text')

ghz.draw('latex')

ghz.draw('mpl',reverse_bits=True)

ghz.draw('mpl',plot_barriers=False)

style={'backgroundcolor':'pink'}
ghz.draw('mpl',style=style)



StarcoderdataJupyterScriptsDedupFiltered