pygsti.tools.internalgates

pygsti.tools.internalgates#

The standard unitaries and gate names, used internal compilers and short-hand model init

Functions

cirq_gatenames_standard_conversions()

A dictionary converting cirq gates to built-in pyGSTi names for these gates.

internal_gate_unitaries()

The unitaries for the internally defined gates.

is_gate_pauli_equivalent_to_this_standard_unitary(...)

Whether a unitary is the standard gate specified by standard_gate_name.

is_gate_this_standard_unitary(gate_unitary, ...)

Whether a unitary is, up to a phase, the standard gate specified by the name standard_gate_name.

qasm_u3(theta, phi, lamb[, output])

The u3 1-qubit gate of QASM, returned as a unitary.

qiskit_gatenames_standard_conversions()

A dictionary converting Qiskit gates (based on Instruction.name) to built-in pyGSTi names for these gates.

standard_gatename_unitaries()

Constructs and returns a dictionary of unitary matrices describing the action of "standard" gates.

standard_gatenames_chp_conversions()

A dictionary converting the gates with standard names to CHP native operations.

standard_gatenames_cirq_conversions()

A dictionary converting the gates with standard names to the cirq names for these gates.

standard_gatenames_openqasm_conversions([...])

A dictionary converting the gates with standard names to the QASM names for these gates.

standard_gatenames_qiskit_conversions()

A dictionary converting the gates with standard names to the Qiskit gates/names.

standard_gatenames_quil_conversions()

A dictionary converting the gates with standard names to the QUIL names for these gates.

standard_gatenames_stim_conversions()

A dictionary converting the gates with standard names to stim tableus for these gates.

unitary_to_standard_gatename(unitary[, ...])

Looks up and returns the standard gate name for a unitary gate matrix, if one exists.

Classes

Gczr()

Gu3()

Gzr()