示例#1
0
def test_program_calibrate_cyclic_error(program_text):
    prog = Program(program_text)
    with pytest.raises(CalibrationError):
        prog.calibrate(Gate("RZ", [np.pi], [Qubit(0)]))