Module ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Str Str Assert CompareEq Call NameLoad Str Dict Str Str Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Call NameLoad Num Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Assert CompareEq Call NameLoad Call NameLoad Num Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Assert CompareEq Call NameLoad Call NameLoad ListLoad Num Num Str decorator_list FunctionDef arguments args defaults body Expr Str Assert CompareEq Call NameLoad Num ListLoad Str Str Assert CompareEq Call NameLoad Num Str ListLoad Str Str Str decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad Str orelse ImportFrom alias Assign NameStore Call NameLoad Call NameLoad Num Num Num keyword Call NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call NameLoad Call NameLoad Num Num Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args defaults body If UnaryOpNot NameLoad body Expr Call NameLoad Str orelse ImportFrom alias Assign NameStore Call NameLoad BinOpMult Call NameLoad Num Num Call NameLoad Num Num keyword Call NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args defaults body If UnaryOpNot NameLoad body Expr Call NameLoad Str orelse ImportFrom alias Assign NameStore Call NameLoad BinOpMult BinOpMult BinOpMult BinOpMult BinOpMult BinOpMult Call NameLoad Num Num Call NameLoad Num Call NameLoad TupleLoad Num Call NameLoad Num Call NameLoad Num Call NameLoad TupleLoad Num Call NameLoad Num Call NameLoad TupleLoad Num Call NameLoad Num Call NameLoad Num Num keyword Call NameLoad Num Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list
N/A sympy.physics.quantum.circuitplot labeller render_label Mz CreateOneQubitGate CreateCGate sympy.physics.quantum.gate CNOT H SWAP CGate S T sympy.external import_module sympy.utilities.pytest skip N/A mpl N/A import_module matplotlib test_render_label N/A N/A N/A N/A N/A N/A N/A render_label q0 $|q0\rangle$ N/A N/A N/A render_label q0 N/A q0 0 $|q0\rangle=|0\rangle$ N/A test_Mz N/A N/A N/A N/A N/A N/A N/A str N/A Mz 0 Mz(0) N/A test_create1 N/A N/A N/A N/A N/A Qgate N/A CreateOneQubitGate Q N/A N/A N/A str N/A Qgate 0 Q(0) N/A test_createc N/A N/A N/A N/A N/A Qgate N/A CreateCGate Q N/A N/A N/A str N/A Qgate N/A 1 0 C((1),Q(0)) N/A test_labeller N/A N/A N/A N/A N/A Test the labeller utility N/A N/A N/A labeller 2 N/A q_1 q_0 N/A N/A N/A labeller 3 j N/A j_2 j_1 j_0 N/A test_cnot N/A N/A N/A N/A N/A Test a simple cnot circuit. Right now this only makes sure the code doesn't
    raise an exception, and some simple properties
     N/A N/A mpl N/A N/A N/A skip matplotlib not installed N/A sympy.physics.quantum.circuitplot CircuitPlot N/A c N/A CircuitPlot N/A CNOT 1 0 2 labels N/A labeller 2 N/A N/A N/A c ngates 2 N/A N/A N/A c nqubits 2 N/A N/A N/A c labels N/A q_1 q_0 N/A c N/A CircuitPlot N/A CNOT 1 0 2 N/A N/A N/A c ngates 2 N/A N/A N/A c nqubits 2 N/A N/A N/A c labels N/A N/A test_ex1 N/A N/A N/A N/A N/A N/A mpl N/A N/A N/A skip matplotlib not installed N/A sympy.physics.quantum.circuitplot CircuitPlot N/A c N/A CircuitPlot N/A N/A CNOT 1 0 N/A H 1 2 labels N/A labeller 2 N/A N/A N/A c ngates 2 N/A N/A N/A c nqubits 2 N/A N/A N/A c labels N/A q_1 q_0 N/A test_ex4 N/A N/A N/A N/A N/A N/A mpl N/A N/A N/A skip matplotlib not installed N/A sympy.physics.quantum.circuitplot CircuitPlot N/A c N/A CircuitPlot N/A N/A N/A N/A N/A N/A N/A SWAP 0 2 N/A H 0 N/A CGate N/A 0 N/A S 1 N/A H 1 N/A CGate N/A 0 N/A T 2 N/A CGate N/A 1 N/A S 2 N/A H 2 3 labels N/A labeller 3 j N/A N/A N/A c ngates 7 N/A N/A N/A c nqubits 3 N/A N/A N/A c labels N/A j_2 j_1 j_0 N/A