File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -394,18 +394,17 @@ class CircuitSpecs:
394394 **Example**
395395
396396 >>> from pennylane.resource import SpecsResources, CircuitSpecs
397- >>> specs = CircuitSpecs(
398- device_name="default.qubit",
399- num_device_wires=2,
400- shots=Shots(1000),
401- level="device",
402- resources=SpecsResources(
403- gate_types={"RX": 2, "CNOT": 1},
404- gate_sizes={1: 2, 2: 1},
405- measurements={"expval(PauliZ)": 1},
406- num_allocs=2,
407- depth=3,
408- ),
397+ >>> specs = CircuitSpecs(device_name="default.qubit",
398+ num_device_wires=2,
399+ shots=Shots(1000),
400+ level="device",
401+ resources=SpecsResources(
402+ gate_types={"RX": 2, "CNOT": 1},
403+ gate_sizes={1: 2, 2: 1},
404+ measurements={"expval(PauliZ)": 1},
405+ num_allocs=2,
406+ depth=3,
407+ ),
409408 )
410409
411410 >>> print(specs.num_device_wires)
Original file line number Diff line number Diff line change @@ -277,12 +277,12 @@ def circuit():
277277 gate_sizes={2: 1},
278278 measurements={'expval(PauliX @ PauliZ)': 1},
279279 num_allocs=2,
280- depth=1)) ,
280+ depth=1),
281281 SpecsResources(gate_types={'RandomLayers': 1},
282282 gate_sizes={2: 1},
283283 measurements={'expval(PauliZ @ PauliY)': 1},
284284 num_allocs=3,
285- depth=1))]
285+ depth=1)])
286286 """
287287 # pylint: disable=import-outside-toplevel
288288 # Have to import locally to prevent circular imports as well as accounting for Catalyst not being installed
You can’t perform that action at this time.
0 commit comments