quantum_nodes.demo_addon.operators

Modules

quantum_nodes.demo_addon.operators.add_and_del_gate

class quantum_nodes.demo_addon.operators.add_and_del_gate.AddAndDelGate

Bases: Operator

Add / Remove a gate.

bl_description: str = 'Add/Remove Gates'

str

Type

type

bl_idname: str = 'object.add_and_del_gate'

str

Type

type

bl_label: str = 'Add And Delete Gate Operator'

str

Type

type

button: None
execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.add_and_del_gate.drawGatesOperator(self, context)

quantum_nodes.demo_addon.operators.add_gate_button

class quantum_nodes.demo_addon.operators.add_gate_button.AddGateButton

Bases: Operator

Add a gate.

bl_idname: str = 'object.add_gate_button'

str

Type

type

bl_label: str = 'Add Gate Button Operator'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

text: None

quantum_nodes.demo_addon.operators.apply_quantum_circuit

class quantum_nodes.demo_addon.operators.apply_quantum_circuit.ApplyQuantumCircuit

Bases: Operator

Apply the quantum circuit on the selected object.

bl_description: str = 'Applies the quantum circuit on the selected mesh'

str

Type

type

bl_idname: str = 'object.apply_quantum_circuit'

str

Type

type

bl_label: str = 'ApplyQuantumCircuit'

str

Type

type

bl_options: Union[Set[str], Set[int]] = {'REGISTER', 'UNDO'}

Options for this operator type

Type

Union[Set[str], Set[int]]

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.delete_target

class quantum_nodes.demo_addon.operators.delete_target.DeleteTarget

Bases: Operator

Delete the current target (selected object).

bl_description: str = 'Deletes the current target'

str

Type

type

bl_idname: str = 'object.delete_target'

str

Type

type

bl_label: str = 'Delete Target'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

invoke(context, event)

Invoke the operator

Parameters
  • context ('Context') --

  • event ('Event') --

Returns

result

quantum_nodes.demo_addon.operators.duplicate_target

class quantum_nodes.demo_addon.operators.duplicate_target.DuplicateTarget

Bases: Operator

Duplicate the selected object to get a copy of it.

bl_description: str = 'Creates a brand new copy of your work'

str

Type

type

bl_idname: str = 'object.duplicate_target'

str

Type

type

bl_label: str = 'Duplicate Target'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.reset_circuits

class quantum_nodes.demo_addon.operators.reset_circuits.ResetCircuits

Bases: Operator

Reset all circuits.

bl_description: str = 'Resets every quantum circuit'

str

Type

type

bl_idname: str = 'object.reset_quantum_circuits'

str

Type

type

bl_label: str = 'Reset circuits'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

invoke(context, event)

Invoke the operator

Parameters
  • context ('Context') --

  • event ('Event') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.select_object

class quantum_nodes.demo_addon.operators.select_object.SelectObject

Bases: Operator

Select a new target object.

bl_idname: str = 'object.select_object'

str

Type

type

bl_label: str = 'Set a new target'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

invoke(context, event)

Invoke the operator

Parameters
  • context ('Context') --

  • event ('Event') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.select_qubit

class quantum_nodes.demo_addon.operators.select_qubit.SelectQubit

Bases: Operator

Select a qubit on which to add a new gate.

bl_description: str = 'Select the qubit you want to modify'

str

Type

type

bl_idname: str = 'dialog.select_qubit'

str

Type

type

bl_label: str = 'Select a qubit'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.select_qubit.drawSelectQubitOperator(self, context)

quantum_nodes.demo_addon.operators.select_qubit_button

class quantum_nodes.demo_addon.operators.select_qubit_button.SelectQubitButton

Bases: Operator

Button to select a qubit.

bl_idname: str = 'object.select_qubit_button'

str

Type

type

bl_label: str = 'Select qubit button Operator'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

index: None

quantum_nodes.demo_addon.operators.subdivide_mesh

class quantum_nodes.demo_addon.operators.subdivide_mesh.SubdivideMesh

Bases: Operator

Subdivide the selected mesh.

bl_description: str = 'Subdivides your object'

str

Type

type

bl_idname: str = 'dialog.number'

str

Type

type

bl_label: str = 'Subdivide'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result

classmethod hasSubsurfModifier(obj)
invoke(context, event)

Invoke the operator

Parameters
  • context ('Context') --

  • event ('Event') --

Returns

result

number: None
classmethod poll(context)

Test if the operator can be called or not

Parameters

context ('Context') --

quantum_nodes.demo_addon.operators.switch_to_an

class quantum_nodes.demo_addon.operators.switch_to_an.SwitchToAn

Bases: Operator

Switch to Animation Nodes.

bl_description: str = 'Behind the scenes'

str

Type

type

bl_idname: str = 'screen.switch_to_an'

str

Type

type

bl_label: str = 'Redirects the user to the animation nodes editor'

str

Type

type

execute(context)

Execute the operator

Parameters

context ('Context') --

Returns

result