Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

src/s/y/sympy-HEAD/sympy/physics/quantum/tests/test_circuitplot.py   sympy(Download)
        skip("matplotlib not installed")
    else:
        from sympy.physics.quantum.circuitplot import CircuitPlot
 
    c = CircuitPlot(CNOT(1,0),2,labels=labeller(2))
    assert c.ngates == 2
    assert c.nqubits == 2
    assert c.labels == ['q_1', 'q_0']
 
    c = CircuitPlot(CNOT(1,0),2)
def test_ex1():
    if not mpl:
        skip("matplotlib not installed")
    else:
        from sympy.physics.quantum.circuitplot import CircuitPlot
 
    c = CircuitPlot(CNOT(1,0)*H(1),2,labels=labeller(2))