quil.instructions
The Python wrapper for [Instruction::Arithmetic
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::BinaryLogic
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::CalibrationDefinition
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Call
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Capture
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::CircuitDefinition
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Convert
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Comparison
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Declaration
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Delay
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Exchange
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Fence
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::FrameDefinition
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Gate
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::GateDefinition
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Include
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Jump
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::JumpWhen
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::JumpUnless
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Label
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Load
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::MeasureCalibrationDefinition
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Measurement
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Move
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Pragma
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Pulse
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::RawCapture
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Reset
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::SetFrequency
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::SetPhase
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::SetScale
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::ShiftFrequency
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::ShiftPhase
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::Store
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::SwapPhases
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::UnaryLogic
], creating a [PyInstruction
] and taking a Python argument.
The Python wrapper for [Instruction::WaveformDefinition
], creating a [PyInstruction
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match Instruction::Variant(x) => x
for every variant constructor in [Instruction
]
Returns x
if this [PyInstruction
] wraps a Instruction::arithmetic
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::arithmetic
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::binary_logic
] value
Returns x
if this [PyInstruction
] wraps a Instruction::binary_logic
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::binary_logic
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::calibration_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::calibration_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::calibration_definition
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::call
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::call
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::capture
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::capture
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::circuit_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::circuit_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::circuit_definition
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::convert
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::convert
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::comparison
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::comparison
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::declaration
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::declaration
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::delay
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::delay
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::exchange
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::exchange
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::fence
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::fence
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::frame_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::frame_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::frame_definition
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::gate
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::gate
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::gate_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::gate_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::gate_definition
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::include
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::include
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::jump
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::jump
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::jump_when
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::jump_when
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::jump_unless
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::jump_unless
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::label
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::label
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::load
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::load
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::measure_calibration_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::measure_calibration_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::measure_calibration_definition
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::measurement
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::measurement
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::move
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::move
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::pragma
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::pragma
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::pulse
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::pulse
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::raw_capture
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::raw_capture
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::reset
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::reset
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::set_frequency
] value
Returns x
if this [PyInstruction
] wraps a Instruction::set_frequency
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::set_frequency
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::set_phase
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::set_phase
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::set_scale
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::set_scale
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::shift_frequency
] value
Returns x
if this [PyInstruction
] wraps a Instruction::shift_frequency
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::shift_frequency
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::shift_phase
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::shift_phase
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::store
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::store
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::swap_phases
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::swap_phases
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyInstruction
] wraps a Instruction::unary_logic
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyInstruction
] wraps a Instruction::unary_logic
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyInstruction
] wraps a [Instruction::waveform_definition
] value
Returns x
if this [PyInstruction
] wraps a Instruction::waveform_definition
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [ArithmeticOperand::LiteralInteger
], creating a [PyArithmeticOperand
] and taking a Python argument.
The Python wrapper for [ArithmeticOperand::LiteralReal
], creating a [PyArithmeticOperand
] and taking a Python argument.
The Python wrapper for [ArithmeticOperand::MemoryReference
], creating a [PyArithmeticOperand
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match ArithmeticOperand::Variant(x) => x
for every variant constructor in [ArithmeticOperand
]
Tests if this [PyArithmeticOperand
] wraps a [ArithmeticOperand::literal_integer
] value
Returns x
if this [PyArithmeticOperand
] wraps a ArithmeticOperand::literal_integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyArithmeticOperand
] wraps a ArithmeticOperand::literal_integer
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyArithmeticOperand
] wraps a [ArithmeticOperand::literal_real
] value
Returns x
if this [PyArithmeticOperand
] wraps a ArithmeticOperand::literal_real
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyArithmeticOperand
] wraps a ArithmeticOperand::literal_real
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyArithmeticOperand
] wraps a [ArithmeticOperand::memory_reference
] value
Returns x
if this [PyArithmeticOperand
] wraps a ArithmeticOperand::memory_reference
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [BinaryOperand::LiteralInteger
], creating a [PyBinaryOperand
] and taking a Python argument.
The Python wrapper for [BinaryOperand::MemoryReference
], creating a [PyBinaryOperand
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match BinaryOperand::Variant(x) => x
for every variant constructor in [BinaryOperand
]
Tests if this [PyBinaryOperand
] wraps a [BinaryOperand::literal_integer
] value
Returns x
if this [PyBinaryOperand
] wraps a BinaryOperand::literal_integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyBinaryOperand
] wraps a BinaryOperand::literal_integer
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyBinaryOperand
] wraps a [BinaryOperand::memory_reference
] value
Returns x
if this [PyBinaryOperand
] wraps a BinaryOperand::memory_reference
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [UnresolvedCallArgument::Identifier
], creating a [PyCallArgument
] and taking a Python argument.
The Python wrapper for [UnresolvedCallArgument::MemoryReference
], creating a [PyCallArgument
] and taking a Python argument.
The Python wrapper for [UnresolvedCallArgument::Immediate
], creating a [PyCallArgument
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match UnresolvedCallArgument::Variant(x) => x
for every variant constructor in [UnresolvedCallArgument
]
Tests if this [PyCallArgument
] wraps a [UnresolvedCallArgument::identifier
] value
Returns x
if this [PyCallArgument
] wraps a UnresolvedCallArgument::identifier
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyCallArgument
] wraps a UnresolvedCallArgument::identifier
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyCallArgument
] wraps a [UnresolvedCallArgument::memory_reference
] value
Returns x
if this [PyCallArgument
] wraps a UnresolvedCallArgument::memory_reference
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyCallArgument
] wraps a UnresolvedCallArgument::memory_reference
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyCallArgument
] wraps a [UnresolvedCallArgument::immediate
] value
Returns x
if this [PyCallArgument
] wraps a UnresolvedCallArgument::immediate
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [ComparisonOperand::LiteralInteger
], creating a [PyComparisonOperand
] and taking a Python argument.
The Python wrapper for [ComparisonOperand::LiteralReal
], creating a [PyComparisonOperand
] and taking a Python argument.
The Python wrapper for [ComparisonOperand::MemoryReference
], creating a [PyComparisonOperand
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match ComparisonOperand::Variant(x) => x
for every variant constructor in [ComparisonOperand
]
Tests if this [PyComparisonOperand
] wraps a [ComparisonOperand::literal_integer
] value
Returns x
if this [PyComparisonOperand
] wraps a ComparisonOperand::literal_integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyComparisonOperand
] wraps a ComparisonOperand::literal_integer
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyComparisonOperand
] wraps a [ComparisonOperand::literal_real
] value
Returns x
if this [PyComparisonOperand
] wraps a ComparisonOperand::literal_real
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyComparisonOperand
] wraps a ComparisonOperand::literal_real
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyComparisonOperand
] wraps a [ComparisonOperand::memory_reference
] value
Returns x
if this [PyComparisonOperand
] wraps a ComparisonOperand::memory_reference
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [ExternParameterType::Scalar
], creating a [PyExternParameterType
] and taking a Python argument.
The Python wrapper for [ExternParameterType::FixedLengthVector
], creating a [PyExternParameterType
] and taking a Python argument.
The Python wrapper for [ExternParameterType::VariableLengthVector
], creating a [PyExternParameterType
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match ExternParameterType::Variant(x) => x
for every variant constructor in [ExternParameterType
]
Tests if this [PyExternParameterType
] wraps a [ExternParameterType::scalar
] value
Returns x
if this [PyExternParameterType
] wraps a ExternParameterType::scalar
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExternParameterType
] wraps a ExternParameterType::scalar
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyExternParameterType
] wraps a [ExternParameterType::fixed_length_vector
] value
Returns x
if this [PyExternParameterType
] wraps a ExternParameterType::fixed_length_vector
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExternParameterType
] wraps a ExternParameterType::fixed_length_vector
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyExternParameterType
] wraps a [ExternParameterType::variable_length_vector
] value
Returns x
if this [PyExternParameterType
] wraps a ExternParameterType::variable_length_vector
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [PragmaArgument::Identifier
], creating a [PyPragmaArgument
] and taking a Python argument.
The Python wrapper for [PragmaArgument::Integer
], creating a [PyPragmaArgument
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match PragmaArgument::Variant(x) => x
for every variant constructor in [PragmaArgument
]
Tests if this [PyPragmaArgument
] wraps a [PragmaArgument::identifier
] value
Returns x
if this [PyPragmaArgument
] wraps a PragmaArgument::identifier
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyPragmaArgument
] wraps a PragmaArgument::identifier
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyPragmaArgument
] wraps a PragmaArgument::integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [AttributeValue::String
], creating a [PyAttributeValue
] and taking a Python argument.
The Python wrapper for [AttributeValue::Expression
], creating a [PyAttributeValue
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match AttributeValue::Variant(x) => x
for every variant constructor in [AttributeValue
]
Returns x
if this [PyAttributeValue
] wraps a AttributeValue::string
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyAttributeValue
] wraps a AttributeValue::string
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyAttributeValue
] wraps a [AttributeValue::expression
] value
Returns x
if this [PyAttributeValue
] wraps a AttributeValue::expression
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [GateSpecification::Matrix
], creating a [PyGateSpecification
] and taking a Python argument.
The Python wrapper for [GateSpecification::Permutation
], creating a [PyGateSpecification
] and taking a Python argument.
The Python wrapper for [GateSpecification::PauliSum
], creating a [PyGateSpecification
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match GateSpecification::Variant(x) => x
for every variant constructor in [GateSpecification
]
Tests if this [PyGateSpecification
] wraps a [GateSpecification::matrix
] value
Returns x
if this [PyGateSpecification
] wraps a GateSpecification::matrix
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyGateSpecification
] wraps a GateSpecification::matrix
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyGateSpecification
] wraps a [GateSpecification::permutation
] value
Returns x
if this [PyGateSpecification
] wraps a GateSpecification::permutation
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyGateSpecification
] wraps a GateSpecification::permutation
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyGateSpecification
] wraps a [GateSpecification::pauli_sum
] value
Returns x
if this [PyGateSpecification
] wraps a GateSpecification::pauli_sum
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [Target::Fixed
], creating a [PyTarget
] and taking a Python argument.
The Python wrapper for [Target::Placeholder
], creating a [PyTarget
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match Target::Variant(x) => x
for every variant constructor in [Target
]
Returns x
if this [PyTarget
] wraps a Target::fixed
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyTarget
] wraps a Target::fixed
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyTarget
] wraps a Target::placeholder
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [Qubit::Fixed
], creating a [PyQubit
] and taking a Python argument.
The Python wrapper for [Qubit::Variable
], creating a [PyQubit
] and taking a Python argument.
The Python wrapper for [Qubit::Placeholder
], creating a [PyQubit
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match Qubit::Variant(x) => x
for every variant constructor in [Qubit
]
Returns x
if this [PyQubit
] wraps a Qubit::fixed
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyQubit
] wraps a Qubit::fixed
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyQubit
] wraps a Qubit::variable
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyQubit
] wraps a Qubit::variable
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyQubit
] wraps a Qubit::placeholder
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Inappropriate argument value (of correct type).
Inappropriate argument value (of correct type).
Inappropriate argument value (of correct type).
Inappropriate argument value (of correct type).